<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<f:view xmlns="http://www.w3.org/1999/xhtml"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:p="http://primefaces.org/ui"
	xmlns:cc="http://java.sun.com/jsf/composite/customcomponents"
	contentType="text/html">
	
	<h:head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
		<title><h:outputText value="#{label['ExampleReport.title']} - #{label['appNameTitle']}"/></title>
		<style>
		.panelGridCenter {
    		margin: 0 auto;
		}
		
		</style>
	</h:head>	
	<h:body>
		<cc:LatamHeader userInfo="true">
			<cc:AppHeaderMenu/>
		</cc:LatamHeader>
			
		<p:panel id="panel" styleClass="latam_body_panel">
			<h:form>
				<p:fieldset legend="#{label['ExampleReport.generate.title']}">
					<p:panel styleClass="no-border">
						<p:panelGrid columns="3" styleClass="panelGridCenter">
							<p:outputLabel value="#{label['ExampleReport.left.label']}"/>
							<p:outputLabel value="#{label['ExampleReport.center.label']}"/>
							<p:outputLabel value="#{label['ExampleReport.right.label']}"/>
							
							<p:inputText value="#{exampleReport.left}"/> 
							<p:inputText value="#{exampleReport.center}"/>
							<p:inputText value="#{exampleReport.right}"/>

						</p:panelGrid>
						<br/>
						<p:panelGrid columns="2" styleClass="panelGridCenter">
							<p:commandButton value="#{label['ExampleReport.generate.label']}" ajax="false" icon="ui-icon-note" update="@form">
			    				<p:fileDownload value="#{exampleReport.generatedReport}" contentDisposition="inline"/>  
							</p:commandButton>
							
							<p:commandButton value="#{label['ExampleReport.generateExcel.label']}" ajax="false" icon="ui-icon-note" update="@form">
			    				<p:fileDownload value="#{exampleReport.generatedExcel}" contentDisposition="inline"/>  
							</p:commandButton>
						</p:panelGrid>
						<br/>
					</p:panel>
				</p:fieldset>
			</h:form>
		</p:panel>			
		
		<cc:LatamFooter/>
	</h:body>
</f:view>